﻿using System.Collections.Generic;

namespace EkStudio.com.common.clipboard
{
    public static class JClipboard
    {
        private static List<object> clip = new List<object>();

        public static void copy(object[] nodes)
        {
            clip.Clear();
            clip.AddRange(nodes);
        }

        public static List<object> Paste()
        {
            return clip;
        }

        public static bool ContainData()
        {
            return clip.Count > 0;
        }

        public static void Clear()
        {
            clip.Clear();
        }
    }
}
